﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="SignInPage.aspx.cs" Inherits="SignInPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="Content/SignInSheet.css" rel="stylesheet" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Content" runat="Server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <center>
    <table style="color: rgb(132, 134, 136)">
            <h3 class="loginTitle">Sigh up a new account</h3>
        </tr>
        <tr>
            <td align="right" class="title">
                <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">User Name:</asp:Label>
            </td>
            <td class="inputText">
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                    <ContentTemplate>
                        <asp:TextBox ID="UserName" runat="server" AutoPostBack="true" OnTextChanged="UserName_TextChanged"></asp:TextBox>
                        <asp:Label ID="ErrorLabel" runat="server" Text="Username has been used" Visible="False"></asp:Label>
                    </ContentTemplate>
                </asp:UpdatePanel>
                <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName" Display="Dynamic" ErrorMessage="UserName required." ToolTip="User Name không hợp lệ." ValidationGroup="CreateUserWizard1">UserName required.</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right" class="title">
                <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
            </td>
            <td class="inputText">
                <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password" ErrorMessage="Password required." ToolTip="Password không hợp lệ." ValidationGroup="CreateUserWizard1">Password required.</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right" class="title">
                <asp:Label ID="ConfirmPasswordLabel" runat="server" AssociatedControlID="ConfirmPassword">Confirm Password:</asp:Label>
            </td>
            <td class="inputText">
                <asp:TextBox ID="ConfirmPassword" runat="server" TextMode="Password"></asp:TextBox>
                <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="Password" ControlToValidate="ConfirmPassword" Display="Dynamic" ErrorMessage="Password not match"></asp:CompareValidator>
                <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" ControlToValidate="ConfirmPassword" ErrorMessage="Password required." ToolTip="Password required." ValidationGroup="CreateUserWizard1">Password required.</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right" class="title">
                <asp:Label ID="EmailLabel" runat="server" AssociatedControlID="Email">E-mail:</asp:Label>
            </td>
            <td class="inputText">
                <asp:TextBox ID="Email" runat="server"></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="Email" ErrorMessage="RegularExpressionValidator" Text="This is not E-mail." ToolTip="This is not E-mail." ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic"></asp:RegularExpressionValidator>
                <asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="Email" ErrorMessage="E-mail required." ToolTip="E-mail required." ValidationGroup="CreateUserWizard1" Display="Dynamic">E-mail required</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right" class="title">
                <asp:Label ID="TenLabel" runat="server" AssociatedControlID="txtTen">Name:</asp:Label>
            </td>
            <td class="inputText">
                <asp:TextBox ID="txtTen" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="TenRequired" runat="server" ControlToValidate="txtTen" ErrorMessage="Name required" ToolTip="Name required" ValidationGroup="CreateUserWizard1">Name required</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right" class="title">
                <asp:Label ID="SexLabel" runat="server" AssociatedControlID="SexRadioList">Sex:</asp:Label>
            </td>
            <td>
                <asp:RadioButtonList ID="SexRadioList" runat="server">
                    <asp:ListItem Selected="True" Value="Man">Man</asp:ListItem>
                    <asp:ListItem Value="Women">Women</asp:ListItem>
                    <asp:ListItem>Another</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr>
            <td align="right" class="title">
                <asp:Label ID="BirthLabel" runat="server" AssociatedControlID="txtNgay">Birthday(MM/dd/yyyy):</asp:Label>
            </td>
            <td class="inputText">
                <asp:TextBox ID="txtNgay" runat="server" TextMode="Date"></asp:TextBox>
                <asp:RequiredFieldValidator ID="NgayRequired" runat="server" ControlToValidate="txtNgay" Display="Dynamic" ErrorMessage="Birthday required." ToolTip="Birthday required" ValidationGroup="CreateUserWizard1">Birthday required.</asp:RequiredFieldValidator>
                <asp:RangeValidator ID="ktNgaysinh" runat="server" ControlToValidate="txtNgay" Display="Dynamic" ErrorMessage="Wrong Birthday" Type="Date"></asp:RangeValidator>
            </td>
        </tr>
        <tr>
            <td align="right" class="title">
                <asp:Label ID="AddressLabel" runat="server" AssociatedControlID="txtAddress">Address:</asp:Label>
            </td>
            <td class="inputText">
                <asp:TextBox ID="txtAddress" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="AddressRequired" runat="server" ControlToValidate="txtAddress" ErrorMessage="Address required." ToolTip="Address required" ValidationGroup="CreateUserWizard1">Address required</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right" class="title">
                <asp:Label ID="CountryLabel" runat="server" AssociatedControlID="txtCountry">Country:</asp:Label>
            </td>
            <td class="inputText">
                <asp:TextBox ID="txtCountry" runat="server"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtCountry" ErrorMessage="Country required." ToolTip="Country required" ValidationGroup="CreateUserWizard1">Country required</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td align="right" class="title">Capcha : </td>
            <td>
                <script type="text/javascript"
                    src="http://www.google.com/recaptcha/api/challenge?k=6LenO94SAAAAAM0Ukg9l521TXuAYddcd86yG0ny0">
                </script>
                <noscript>
                    <iframe src="http://www.google.com/recaptcha/api/noscript?k=6LenO94SAAAAAM0Ukg9l521TXuAYddcd86yG0ny0"
                        height="300" width="500" frameborder="0"></iframe><br>
                    <textarea name="recaptcha_challenge_field" rows="3" cols="40">
                    </textarea>
                    <input type="hidden" name="recaptcha_response_field"
                value="manual_challenge">
                </noscript>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="right">
                <asp:Button ID="bntSub" CssClass="tg-button-search" runat="server" Text="Đăng kí" Font-Size="Large" OnClick="bntSub_Click" />
            </td>
        </tr>
    </table>
        </center>
</asp:Content>

